//
// Created by xqls on 12-8-28.
//
// To change the template use AppCode | Preferences | File Templates.
//


#import <Foundation/Foundation.h>

#import "HPGrowingTextView.h"

@class CommnetMessageSendPanel;

@protocol CommnetMessageSendPanelDelegate <NSObject>

@optional

- (BOOL)commnetMessageSendPanelShouldBeginEdit:(CommnetMessageSendPanel *)panel;

- (BOOL)commnetMessageSendPanelShouldEndEdit:(CommnetMessageSendPanel *)panel;

- (void)commnetMessageSendPanelDidBeginEdit:(CommnetMessageSendPanel *)panel;

- (void)commnetMessageSendPanelDidEndEdit:(CommnetMessageSendPanel *)panel;

- (void)commnetMessageSendPanelTextDidChanged:(CommnetMessageSendPanel *)panel;

- (void)commnetMessageSendPanelSendText:(CommnetMessageSendPanel *)panel;

//- (BOOL)commnetMessageSendPanel:(CommnetMessageSendPanel *)panel shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text;

@end

@interface CommnetMessageSendPanel : UIView <HPGrowingTextViewDelegate>
{
}

@property(nonatomic, weak) id <CommnetMessageSendPanelDelegate> delegate;

@property(nonatomic, readonly) HPGrowingTextView *textView;

@property(nonatomic,readonly) CGFloat sendInputPanelHeight;

@end
